<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>测试用 HTML 页面</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            line-height: 1.6;
            margin: 0;
            padding: 20px;
            background-color: #f5f5f5;
        }
        h1 {
            color: #333;
            border-bottom: 2px solid #333;
            padding-bottom: 10px;
        }
        .container {
            max-width: 800px;
            margin: 0 auto;
            background: white;
            padding: 20px;
            border-radius: 5px;
            box-shadow: 0 0 10px rgba(0,0,0,0.1);
        }
        button {
            padding: 8px 16px;
            background: #4CAF50;
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
        }
        button:hover {
            background: #45a049;
        }
    </style>
</head>
<body>
    <div class="container">
        <h1>测试页面</h1>
        <p>这是一个用于测试的简单 HTML 文件。</p>
        
        <h2>功能测试</h2>
        <button id="testButton">点击测试</button>
        <p id="output">按钮点击结果会显示在这里</p>
        
        <h2>测试列表</h2>
        <ul>
            <li>列表项 1</li>
            <li>列表项 2</li>
            <li>列表项 3</li>
        </ul>
        
        <h2>测试表单</h2>
        <form>
            <label for="name">姓名：</label>
            <input type="text" id="name" name="name"><br><br>
            
            <label for="email">邮箱：</label>
            <input type="email" id="email" name="email"><br><br>
            
            <input type="submit" value="提交">
        </form>
    </div>

    <script>
        document.getElementById('testButton').addEventListener('click', function() {
            document.getElementById('output').textContent = '按钮已点击 - ' + new Date().toLocaleTimeString();
        });
    </script>
</body>
</html>
